﻿<div class="row">
    <div class="col-xs-12">
        <!-- PAGE CONTENT BEGINS -->
        <div class="row">
            <div id="menu_test" class="col-sm-12">
                <div class="col-xs-12 col-sm-3 widget-container-span">
                    <div class="widget-box">
                        <div class="widget-header header-color-blue">
                            <div class="widget-toolbar no-border">
                                <button class="btn btn-xs bigger btn-purple" data-bind="click: _publish_Menu">
                                    发布菜单
                                </button>
                                <button data-bind="click: AddMenu" class="btn btn-xs bigger btn-yellow">
                                    <i class="icon-plus"></i>
                                    添加菜单
                                </button>

                                <button data-bind="click: SortMenu" class="btn btn-xs bigger btn-success">
                                    <i class="icon-save"></i>
                                    保存排序
                                </button>
                            </div>
                        </div>

                        <div class="widget-body">
                            <div class="widget-main no-padding">
                                <div class="widget-main">
                                    <div class="dd" id="nestable">
                                        <ul class="dd-list" data-bind="foreach: MenuList">
                                            <li class="dd-item" data-id="123-1231" data-rank="1" data-bind="attr: { 'data-Id': Id }">
                                                <div class="dd-handle" data-bind="click: _clickMenu">
                                                    <span data-bind="text: MenuName"></span>
                                                    <div class="pull-right action-buttons">
                                                        <a class="grey" href="#" data-bind="click: _addChildMenu, clickBubble: false">
                                                            <i class="icon-plus bigger-130"></i>
                                                        </a>
                                                        <a class="grey" href="#" data-bind="click: _editMenu, clickBubble: false">
                                                            <i class="icon-pencil bigger-130"></i>
                                                        </a>
                                                        <a class="grey" href="#" data-bind="click: _deleteMenu, clickBubble: false">
                                                            <i class="icon-trash bigger-130"></i>
                                                        </a>
                                                    </div>
                                                </div>
                                                <ul class="dd-list" id="testChild" data-bind="foreach: ChildrenMenus">
                                                    <li class="dd-item" data-id="3" data-bind="click: _clickMenu, attr: { 'data-Id': Id }" data-rank="2">
                                                        <div class="dd-handle">
                                                            <span data-bind="text: MenuName"></span>
                                                            <div class="pull-right action-buttons">
                                                                <a class="grey" href="#" data-bind="click: _editMenu, clickBubble: false">
                                                                    <i class="icon-pencil bigger-130"></i>
                                                                </a>
                                                                <a class="grey" href="#" data-bind="click: _deleteMenu, clickBubble: false">
                                                                    <i class="icon-trash bigger-130"></i>
                                                                </a>
                                                            </div>
                                                        </div>
                                                    </li>
                                                </ul>
                                            </li>
                                        </ul>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- /span -->

                <div class="col-xs-12 col-sm-9 widget-container-span">
                    <div class="widget-box">
                        <div class="widget-body">
                            <div class="widget-main no-padding">
                                <div class="row">
                                    <div class="col-sm-12">
                                        <div class="widget-main">
                                            <p class="alert alert-info" data-bind="visible: 'No' == ShowArea()">
                                                已有子菜单，无法设置动作
                                            </p>
                                            <p class="alert alert-success" data-bind="visible: 'Ini' == ShowArea()">
                                                您可以设置响应操作
                                            </p>
                                            <div class="tabbable" data-bind="visible: 'Yes' == ShowArea()">
                                                <p class="red">订阅者点击该子菜单会收到以下消息</p>
                                                <ul class="nav nav-tabs" id="Ul1">
                                                    <li class="active tab_active" id="tab_Text">
                                                        <a data-toggle="tab" href="#tab_Text_Content">
                                                            <i class="green icon-edit bigger-110"></i>
                                                            文字
                                                        </a>
                                                    </li>

                                                    <li id="tab_Music" class="tab_active">
                                                        <a data-toggle="tab" href="#tab_Music_Content">
                                                            <i class="green icon-microphone bigger-110"></i>
                                                            音乐
                                                        </a>
                                                    </li>

                                                    <li class="dropdown tab_active" id="tab_Link">
                                                        <a data-toggle="tab" href="#tab_Link_Content">
                                                            <i class="green icon-link bigger-110"></i>
                                                            链接地址
                                                        </a>
                                                    </li>
                                                    <li class="dropdown tab_active" id="tab_News">
                                                        <a data-toggle="tab" href="#tab_News_Content">
                                                            <i class="green icon-picture bigger-110"></i>
                                                            图文消息
                                                        </a>
                                                    </li>
                                                </ul>

                                                <div class="tab-content">
                                                    <div id="tab_Text_Content" class="tab-pane in active tab_active">
                                                        <div class="widget-box">
                                                            <div class="widget-header widget-header-small  header-color-blue">
                                                            </div>
                                                            <div class="widget-body">
                                                                <div class="widget-main no-padding">
                                                                    <textarea id="editor2" name="editor2" class="xheditor {tools:'Bold,Italic,Underline,Strikethrough',skin:'default'}" rows="12" cols="80" style="width: 100%"></textarea>
                                                                </div>

                                                                <div class="widget-toolbox padding-4 clearfix">
                                                                    <div class="btn-group pull-right">
                                                                        <a href="javascript:void(0)" class="btn btn-sm btn-warning iconEmotion" inputid="editor2">
                                                                            <i class="icon-smile bigger-125"></i>
                                                                            表情
                                                                        </a>
                                                                        <div class="emotions"></div>

                                                                    </div>
                                                                    <div class="btn-group pull-left">
                                                                        <button data-bind="click: _text_Save" class="btn btn-sm btn-primary">
                                                                            <i class="icon-save bigger-125"></i>
                                                                            保存
                                                                        </button>
                                                                    </div>
                                                                    <div class="btn-group pull-left">
                                                                        <button id="btn_Text_Cancel" class="btn btn-sm btn-default">
                                                                            <i class="icon-save bigger-125"></i>
                                                                            清除
                                                                        </button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div id="tab_Music_Content" class="tab-pane tab_active">
                                                        <table class="table table-striped table-bordered table-hover no-margin-bottom no-border-top">
                                                            <thead>
                                                                <tr>
                                                                    <th>标题</th>
                                                                    <th>描述</th>
                                                                    <th>时间</th>
                                                                    <th class="text-center" style="width: 60px;">操作</th>
                                                                </tr>
                                                            </thead>
                                                            <tbody>
                                                                <tr>
                                                                    <td data-bind="text: MusicEntity().Title">暂无</td>
                                                                    <td data-bind="text: MusicEntity().Description">暂无</td>
                                                                    <td data-bind="text: MusicEntity().CreateDateTime">暂无</td>
                                                                    <td class="text-center"><a data-toggle="modal" href="javascript:void(0)" role="button" data-bind="click: _select_Music"><i class="icon-pencil bigger-130"></i></a></td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </div>

                                                    <div id="tab_Link_Content" class="tab-pane tab_active">
                                                        <div class="input-group">
                                                            <input class="form-control input-mask-date" type="text" id="form-field-mask-1" value="http://">
                                                            <span class="input-group-btn">
                                                                <button class="btn btn-sm btn-primary" type="button" data-bind="click: _link_Save">
                                                                    <i class="icon-save bigger-110"></i>
                                                                    保存链接地址
                                                                </button>
                                                            </span>
                                                        </div>
                                                        <h5>
                                                            例如： http://www.vknew.com
                                                        </h5>
                                                    </div>

                                                    <div id="tab_News_Content" class="tab-pane tab_active">
                                                        <h5 data-bind="text: NewsEntity().Title">标题</h5>
                                                        <ul class="ace-thumbnails">
                                                            <li>
                                                                <div>
                                                                    <img alt="150x150" src="" data-bind="attr: { src: (NewsEntity().PicUrl == '' ? NewsEntity().LocalUrl : NewsEntity().PicUrl) }">
                                                                    <div class="text">
                                                                        <div class="inner">
                                                                            <a data-rel="colorbox" class="cboxElement" data-toggle="modal" href="#modal-talbe2" data-bind="click: _select_News" role="button">
                                                                                <i class="icon-pencil bigger-200"></i>
                                                                            </a>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </li>
                                                        </ul>

                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- /span -->
            </div>
            <!-- /span -->


        </div>
        <!-- /row -->
        <div id="modal-table" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header no-padding">
                        <div class="table-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                <span class="white">×</span>
                            </button>
                            选择语音
                        </div>
                    </div>

                    <div class="modal-body no-padding">
                        <table class="table table-striped table-bordered table-hover no-margin-bottom no-border-top">
                            <thead>
                                <tr>
                                    <th class="text-center" width="50">选择</th>
                                    <th>标题</th>
                                    <th>音乐</th>
                                    <th>时间</th>
                                </tr>
                            </thead>

                            <tbody>
                                <tr>
                                    <td class="text-center">
                                        <input type="radio" value="1" name="music">
                                    </td>
                                    <td>$45</td>
                                    <td>3,330</td>
                                    <td>Feb 12</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                    <div class="modal-footer no-margin-top">
                        <button class="btn btn-sm btn-primary pull-left" data-dismiss="modal">
                            <i class="icon-save"></i>
                            保存
                        </button>

                        <ul class="pagination pull-right no-margin">
                            <li class="prev disabled">
                                <a href="#">
                                    <i class="icon-double-angle-left"></i>
                                </a>
                            </li>

                            <li class="active">
                                <a href="#">1</a>
                            </li>

                            <li>
                                <a href="#">2</a>
                            </li>

                            <li>
                                <a href="#">3</a>
                            </li>

                            <li class="next">
                                <a href="#">
                                    <i class="icon-double-angle-right"></i>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>
        <div id="modal-talbe2" class="modal fade" tabindex="-1" style="display: none;" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header no-padding">
                        <div class="table-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                <span class="white">×</span>
                            </button>
                            选择图文信息
                        </div>
                    </div>










                    <div class="modal-body no-padding" id="dialogNews">
                        <div class="imglsit22">
                            <dl data-bind="foreach: NewsEntityList()">
                                <dd>
                                    <div id="Div1" class="tab-pane">
                                        <h5 data-bind="text: Title">标题</h5>
                                        <ul class="ace-thumbnails">
                                            <li class="newsLI" data-bind="css: { hover: AllowHover }">
                                                <div>
                                                    <img alt="150x150" width="150" height="150" data-bind="attr: { src: (PicUrl == '' ? LocalUrl : PicUrl) }">
                                                    <div class="text">
                                                        <div class="inner">
                                                            <a data-rel="colorbox" data-bind="click: _clickImg" class="cboxElement" href="#">
                                                                <i class="icon-pencil bigger-200"></i>
                                                            </a>
                                                        </div>
                                                    </div>
                                                </div>
                                            </li>
                                        </ul>
                                    </div>
                                </dd>
                            </dl>
                        </div>
                    </div>
                    <div class="modal-footer no-margin-top" style="clear: both" id="dialogNewsBtn">
                        <button data-bind="click: _News_Save" class="btn btn-sm btn-primary pull-left" data-dismiss="modal">
                            <i class="icon-save"></i>
                            保存
                        </button>


                        <div id="pageLinkBtn"></div>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>
        <script type="text/javascript">
            var $path_assets = "assets";//this will be used in gritter alerts containing images
        </script>
        <!-- PAGE CONTENT ENDS -->
    </div>
    <!-- /.col -->
</div>


<input type="hidden" id="nestable-output" value="" />







<style type="text/css">
    * {
        margin: 0px;
        padding: 0px;
        list-style: none;
    }


    .imglsit22 {
        width: 586px;
    }

        .imglsit22 dl {
        }

        .imglsit22 dd {
            float: left;
            width: 192px;
            height: 210px;
            border: 1px solId #dedede;
            margin: 0 1px 1px 0;
        }

        .imglsit22 dt {
            clear: both;
        }

    .ace-thumbnails > li.hover > :first-child > .text {
        opacity: 1;
        filter: alpha(opacity=100);
    }
</style>